.calendar_flex {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time_flex {
    position: relative;
    top: 30px;
    left: 10vw;
    display: flex;
    gap: 20px;
    width: 80vw;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 8vw;
    margin-bottom: 5vw;
    justify-content: center;
}

.time {
    position: relative;
    width: 100px;
    height: 50px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #d6ad6f;
    color: #d6ad6f;
    font-family: 'Open Sans';
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 10px #00000029;
    cursor: pointer;
}

.time_selected {
    background: #d6ad6f;
    border: none;
    color: #000;
}

.time_disabled {
    background: #e9e9e9;
    color: #585757;
    border: none;
    box-shadow: none;
}

.calendar {
    position: absolute;
    top: 85px;
    display: none;
    width: 360px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px #00000064;
    z-index: 10;
}

.calendar header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar ul {
    text-align: center;
    font-family: 'Open Sans';
    font-weight: 600;
}

.calendar ul li {
    position: relative;
    display: flex;
    width: 25px;
    justify-content: center;
    align-items: center;
    color: #000;

}


.calendar .days, .calendar .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 colunas fixas */
  padding: 10px;
  margin: 0;
  list-style: none;
  grid-auto-rows: 45px;
  justify-content: space-evenly;
}

.calendar .days {
    grid-auto-rows: 30px;
}

.dates li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.dates li button.today {
    position: relative;
    left: 0rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    z-index: 2;
}

.dates li button.today::before {
    content: "";
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d6ad6f;
    border-radius: 50%;
    z-index: -1;
}

.dates li button.inactive {
    color: #5a5a5a;
}


.button_calendar {
    background: transparent;
    border: none;
    font-family: 'Open Sans';
    font-size: 1rem;
    padding: 10px;
    cursor: pointer;
    left: 10px;
    color: #000;
    
}

.button_calendar:hover {
    font-weight: 600;
}


.button_date {
    position: relative;
    width: 360px;
    height: 40px;
    padding: 10px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background-color: #d6ad6f;
    border: 1px solid #ccc;
    color: #000;

    border-radius: 4px;
    font-weight: 600;
    line-height: 0.6rem;
    background-image: url("../assets/imagens/home/gold_button3.png");
    background-size: cover;
    background-position:initial;
    background-repeat: no-repeat;
    cursor: pointer;
}

.button {
    position: relative;
    top: 10px;
    /* background: #00000013; */
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.button img {
    position: relative;
    width: 30px;
}

#img_button_prev, #img_button_calendar_prev {
    left: 5px;
}


@media (max-width: 769px) {
    .button_date {
        width: calc(100vw - 120px);
    }

    
    .days, .dates {
        display: flex;
        flex-direction: row;
    }

    .button_calendar {
        margin: 0;
    }

    .calendar {
        width: 90vw;
        left: 5vw;
    }

    ul.days li {
        position: relative;
        width: 100%;
        text-align: center;
        color: #000;

    }

    ul.dates li{
        width: 100%;
        color: #000;

    }

}